
public class SalaryIncome extends Income{

	// TODO
    public SalaryIncome(double income){
        super(income);
    }

    @Override
    public double getTax() {
        if (super.income<5000){
            return 0;
        }else{
            return (super.income-5000)*0.5;
        }
    }
}
